<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">


<html 		xmlns="http://www.w3.org/1999/xhtml"
			xmlns:ui="http://java.sun.com/jsf/facelets"
			xmlns:h="http://java.sun.com/jsf/html"
			xmlns:f="http://java.sun.com/jsf/core"
			xmlns:a4j="http://richfaces.org/a4j"
			xmlns:rich="http://richfaces.org/rich"
			xmlns:t="http://myfaces.apache.org/tomahawk">
			
	<head>
		<title>
			<h:outputText value="#{bundle.tituloAplicacao}" /> 
		</title>
		<link rel="stylesheet" type="text/css" href="/#{bundle.pathAplicacao}/css/geral.css" />
	</head>
	
	<body>
		<table id="subTopo" style="background:url(../imagens/topoFundo.jpg); width: 100%;" cellpadding="0" cellspacing="0" width="100%">
			<tr style="height: 81px;">
				<td style="width: 10px;"></td>
				<td style="width: 320px;">
					<img src="/#{bundle.pathAplicacao}/imagens/logotipoUniodonto.png" border="0"/>
				</td>
				<td class="textoUser" style="width: 500px;">
				</td>
				<td style="text-align: right; vertical-align: middle;">
				</td>
				<td style="width: 10px;"></td>
			</tr>
		</table> 
		<table>
			<tr>
				<td style="width: 100%">
                  <a4j:outputPanel  ajaxRendered="true">
                      <h:messages layout="table" warnClass="msgWarm" errorClass="msgError" infoClass="msgInfo" id="messages"/>
                  </a4j:outputPanel>
				</td>
			</tr>
		</table>  
		<table id="subTopo" cellpadding="0" cellspacing="0" width="100%">
		    <tr style="height: 80px;">
		      <td style="text-align: center;" width="100%">
		        <a4j:form id="formulario">
                    <a4j:loadScript src="/script/jquery.maskedinput-1.2.2.js" />
                    <a4j:loadScript src="/script/jquery.price_format.1.2.js" />
                    <a4j:loadScript src="/script/util.js" />
					<table>
						<tr style="width: 100%;">
							<td class="tdCor" style="width: 130px;">
								 <h:outputText value="#{bundle.lbl_login}"/>:
							</td>
							<td style="width: 130px; text-align: left;">
								<h:inputText id="usuario" value="#{loginBean.usuarioVo.login}" maxlength="12"/>
							</td>
						    <td class="tdCor" style="width: 80px;">
					            <h:outputText value="#{bundle.lbl_senha}"/>:
					        </td>
					        <td style="width: 130px; text-align: left;">
					        	<h:inputSecret style="border-color: #8a0000" value="#{loginBean.usuarioVo.senha}"/>
					        </td>
					        <td style="width: 50px;">
					        </td>
					        <td>
					        	<h:commandButton type="submit" value="entrar no sistema" action="#{loginBean.logar}"/>
					        </td>
					     </tr>
					</table>
                  </a4j:form>
		      </td>
		    </tr>
		</table>      
	</body>
    <script>document.getElementById('formulario:usuario').focus();</script>
</html>